import 'package:flutter/material.dart';
import 'package:vmall_app/models/goods.dart';

class GoodsImages extends StatelessWidget {
  final int goodsId;
  const GoodsImages({Key key, this.goodsId}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SliverToBoxAdapter(
      child: Container(
        color: Colors.grey,
        child: Image.network(
          getGoodsById(this.goodsId).imagegUrl,
          fit: BoxFit.cover,
        ),
        height: 400,
      ),
    );
  }
}
